﻿using Facebook;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System;

namespace BicycleTrafficSimulator
{
    partial class LoginForm
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LoginForm));
            this.webBrowser = new System.Windows.Forms.WebBrowser();
            this.registerButton = new System.Windows.Forms.Button();
            this.loginButton = new System.Windows.Forms.Button();
            this.loginFacebookButton = new System.Windows.Forms.Button();
            this.firstNameLabel = new System.Windows.Forms.Label();
            this.birthYearLabel = new System.Windows.Forms.Label();
            this.ageTextBox = new System.Windows.Forms.TextBox();
            this.nameTextBox = new System.Windows.Forms.TextBox();
            this.specLabel = new System.Windows.Forms.Label();
            this.childrenPictureBox = new System.Windows.Forms.PictureBox();
            this.titleLabel = new System.Windows.Forms.Label();
            this.gameSurface = new System.Windows.Forms.PictureBox();
            this.backButton = new System.Windows.Forms.Button();
            ((System.ComponentModel.ISupportInitialize)(this.childrenPictureBox)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.gameSurface)).BeginInit();
            this.SuspendLayout();
            // 
            // webBrowser
            // 
            this.webBrowser.Dock = System.Windows.Forms.DockStyle.Fill;
            this.webBrowser.Location = new System.Drawing.Point(0, 0);
            this.webBrowser.MinimumSize = new System.Drawing.Size(20, 20);
            this.webBrowser.Name = "webBrowser";
            this.webBrowser.Size = new System.Drawing.Size(700, 600);
            this.webBrowser.TabIndex = 0;
            this.webBrowser.DocumentCompleted += new System.Windows.Forms.WebBrowserDocumentCompletedEventHandler(this.webBrowser_DocumentCompleted);
            // 
            // registerButton
            // 
            this.registerButton.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.registerButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.registerButton.BackColor = System.Drawing.SystemColors.ActiveCaption;
            this.registerButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.registerButton.ForeColor = System.Drawing.SystemColors.ControlLightLight;
            this.registerButton.Location = new System.Drawing.Point(128, 427);
            this.registerButton.Name = "registerButton";
            this.registerButton.Size = new System.Drawing.Size(106, 23);
            this.registerButton.TabIndex = 1;
            this.registerButton.Text = "Register";
            this.registerButton.UseVisualStyleBackColor = false;
            this.registerButton.Click += new System.EventHandler(this.registerButton_Click);
            // 
            // loginButton
            // 
            this.loginButton.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.loginButton.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
            this.loginButton.BackColor = System.Drawing.SystemColors.ActiveCaption;
            this.loginButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.loginButton.ForeColor = System.Drawing.SystemColors.ControlLightLight;
            this.loginButton.Location = new System.Drawing.Point(240, 427);
            this.loginButton.Name = "loginButton";
            this.loginButton.Size = new System.Drawing.Size(110, 23);
            this.loginButton.TabIndex = 2;
            this.loginButton.Text = "Login";
            this.loginButton.UseVisualStyleBackColor = false;
            this.loginButton.Click += new System.EventHandler(this.loginButton_Click);
            // 
            // loginFacebookButton
            // 
            this.loginFacebookButton.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.loginFacebookButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("loginFacebookButton.BackgroundImage")));
            this.loginFacebookButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.loginFacebookButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.loginFacebookButton.ForeColor = System.Drawing.SystemColors.ControlLightLight;
            this.loginFacebookButton.Location = new System.Drawing.Point(426, 427);
            this.loginFacebookButton.Name = "loginFacebookButton";
            this.loginFacebookButton.Size = new System.Drawing.Size(172, 46);
            this.loginFacebookButton.TabIndex = 3;
            this.loginFacebookButton.UseVisualStyleBackColor = true;
            this.loginFacebookButton.Click += new System.EventHandler(this.loginFacebookButton_Click);
            // 
            // firstNameLabel
            // 
            this.firstNameLabel.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.firstNameLabel.AutoSize = true;
            this.firstNameLabel.BackColor = System.Drawing.SystemColors.ControlLightLight;
            this.firstNameLabel.Location = new System.Drawing.Point(125, 308);
            this.firstNameLabel.Name = "firstNameLabel";
            this.firstNameLabel.Size = new System.Drawing.Size(35, 13);
            this.firstNameLabel.TabIndex = 4;
            this.firstNameLabel.Text = "Name";
            // 
            // birthYearLabel
            // 
            this.birthYearLabel.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.birthYearLabel.AutoSize = true;
            this.birthYearLabel.BackColor = System.Drawing.SystemColors.ControlLightLight;
            this.birthYearLabel.Location = new System.Drawing.Point(129, 354);
            this.birthYearLabel.Name = "birthYearLabel";
            this.birthYearLabel.Size = new System.Drawing.Size(26, 13);
            this.birthYearLabel.TabIndex = 5;
            this.birthYearLabel.Text = "Age";
            // 
            // ageTextBox
            // 
            this.ageTextBox.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.ageTextBox.Location = new System.Drawing.Point(186, 351);
            this.ageTextBox.MaxLength = 4;
            this.ageTextBox.Name = "ageTextBox";
            this.ageTextBox.Size = new System.Drawing.Size(100, 20);
            this.ageTextBox.TabIndex = 6;
            this.ageTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtNumbers_KeyPress);
            // 
            // nameTextBox
            // 
            this.nameTextBox.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.nameTextBox.Location = new System.Drawing.Point(186, 305);
            this.nameTextBox.MaxLength = 20;
            this.nameTextBox.Name = "nameTextBox";
            this.nameTextBox.Size = new System.Drawing.Size(100, 20);
            this.nameTextBox.TabIndex = 7;
            // 
            // specLabel
            // 
            this.specLabel.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.specLabel.AutoSize = true;
            this.specLabel.BackColor = System.Drawing.SystemColors.ControlLightLight;
            this.specLabel.Location = new System.Drawing.Point(292, 354);
            this.specLabel.Name = "specLabel";
            this.specLabel.Size = new System.Drawing.Size(113, 13);
            this.specLabel.TabIndex = 8;
            this.specLabel.Text = " *only when registering";
            // 
            // childrenPictureBox
            // 
            this.childrenPictureBox.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.childrenPictureBox.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("childrenPictureBox.BackgroundImage")));
            this.childrenPictureBox.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.childrenPictureBox.Location = new System.Drawing.Point(361, 73);
            this.childrenPictureBox.Name = "childrenPictureBox";
            this.childrenPictureBox.Size = new System.Drawing.Size(304, 248);
            this.childrenPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            this.childrenPictureBox.TabIndex = 9;
            this.childrenPictureBox.TabStop = false;
            // 
            // titleLabel
            // 
            this.titleLabel.Anchor = System.Windows.Forms.AnchorStyles.None;
            this.titleLabel.AutoSize = true;
            this.titleLabel.BackColor = System.Drawing.SystemColors.ControlLightLight;
            this.titleLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.titleLabel.Location = new System.Drawing.Point(75, 129);
            this.titleLabel.Name = "titleLabel";
            this.titleLabel.Size = new System.Drawing.Size(127, 25);
            this.titleLabel.TabIndex = 10;
            this.titleLabel.Text = "Let\'s bike! ";
            // 
            // gameSurface
            // 
            this.gameSurface.Location = new System.Drawing.Point(0, 0);
            this.gameSurface.Name = "gameSurface";
            this.gameSurface.Size = new System.Drawing.Size(100, 50);
            this.gameSurface.TabIndex = 0;
            this.gameSurface.TabStop = false;
            // 
            // backButton
            // 
            this.backButton.BackColor = System.Drawing.SystemColors.Window;
            this.backButton.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("backButton.BackgroundImage")));
            this.backButton.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.backButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.backButton.ForeColor = System.Drawing.SystemColors.Window;
            this.backButton.Location = new System.Drawing.Point(12, 12);
            this.backButton.Name = "backButton";
            this.backButton.Size = new System.Drawing.Size(89, 59);
            this.backButton.TabIndex = 11;
            this.backButton.UseVisualStyleBackColor = false;
            this.backButton.Click += new System.EventHandler(this.backButton_Click);
            // 
            // LoginForm
            // 
            this.ClientSize = new System.Drawing.Size(700, 600);
            this.Controls.Add(this.backButton);
            this.Controls.Add(this.titleLabel);
            this.Controls.Add(this.childrenPictureBox);
            this.Controls.Add(this.specLabel);
            this.Controls.Add(this.nameTextBox);
            this.Controls.Add(this.ageTextBox);
            this.Controls.Add(this.birthYearLabel);
            this.Controls.Add(this.firstNameLabel);
            this.Controls.Add(this.loginFacebookButton);
            this.Controls.Add(this.loginButton);
            this.Controls.Add(this.registerButton);
            this.Controls.Add(this.webBrowser);
            this.Name = "LoginForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Login";
            ((System.ComponentModel.ISupportInitialize)(this.childrenPictureBox)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.gameSurface)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.WebBrowser webBrowser;
        private Button registerButton;
        private Button loginButton;
        private Button loginFacebookButton;
        private Label firstNameLabel;
        private Label birthYearLabel;
        private TextBox ageTextBox;
        private TextBox nameTextBox;
        private Label specLabel;
        private PictureBox childrenPictureBox;
        private Label titleLabel;

        private void txtNumbers_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!char.IsControl(e.KeyChar)
                && !char.IsDigit(e.KeyChar)
                && e.KeyChar != '.')
            {
                e.Handled = true;
            }
            if (e.KeyChar == '.'
                && (sender as TextBox).Text.IndexOf('.') > -1)
            {
                e.Handled = true;
            }
        }

        private PictureBox gameSurface;

        public IntPtr getDrawSurface()
        {
            return gameSurface.Handle;
        }

        private Button backButton;

    }
}